
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>historique</title>
    </head>   
     
   
    
    <body>
        <h1>Résultat de la méthode RMI selectionnée dans l'historique </h1>
        
         <%  try{
            if(request.getAttribute("error")!=null)              
                   out.print(((String)request.getAttribute("error")));
                   request.removeAttribute("error");
             if(request.getAttribute("info")!=null)
                   out.print(((String)request.getAttribute("info")));
                   request.removeAttribute("info");
            }catch  (Exception ex){
            
            }   
    
    %>
       
        		    
                    <%
                        if (((String) request.getAttribute("historiqueMono")) == null) {

                        } else {
                            String[] temp = ((String) request.getAttribute("historiqueMono")).split(";");
                            
                            if(temp.length>1)
                            {
                            out.print("<table>");	     
                            out.print("<tr><td>Processus</td><td>PID</td><td>User</td></tr>");
                              
                            
                                
                            for (int i = 0; i < temp.length; i++) 
                            {
                                
                                
                                String[] ligne = temp[i].split(",");
                                
                                out.print("<tr> <td>" + ligne[0]+"</td><td>"+ligne[1]+"</td><td>"+ligne[2]+"</td></tr>");
 
                                    
                                
                           
                                
                            }
                            
                            out.print("</table>");
                            }
                            else
                            {
                                out.println(temp[0]+ "<br />");
                            }
                        }

                    %>
                    
               
       
       
                
        <form action="/Phase4-IHM/suppressionLog" method="GET">
            <button type="submit">Clear LOG</button>
        </form>        
        
        <form action="/Phase4-IHM/dispatcheur" method="GET">
            <button type="submit">Retour</button>
        </form>        
	
	 <form action="/Phase4-IHM/deconnexion" method="GET">
            <button type="submit">Déconnexion</button>
        </form>
        
    </body>
</html>
